//
//  CLMineInfoTableViewCell.swift
//  CLEasyBBQ
//
//  Created by simon zhao on 2017/4/7.
//  Copyright © 2017年 simon zhao. All rights reserved.
//

import UIKit

class CLMineInfoTableViewCell: UITableViewCell {
    @IBOutlet weak var shopNameLabel: UILabel!
    @IBOutlet weak var shopOwnerLabel: UILabel!
    @IBOutlet weak var contactNumLabel: UILabel!
    @IBOutlet weak var shopAddrLabel: UILabel!

    @IBOutlet weak var labelHeight: NSLayoutConstraint!
    @IBOutlet weak var labelTopMargin: NSLayoutConstraint!
    
    @IBOutlet weak var nameLabelMargin: NSLayoutConstraint!
    
    @IBOutlet weak var telLabelMargin: NSLayoutConstraint!
    
    @IBOutlet weak var lableLineBottom: NSLayoutConstraint!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code

        
    }
    
    override func layoutSubviews() {
        
        super.layoutSubviews()
        
        let margin = self.contentView.frame.size.height * 0.04
        labelHeight.constant = self.contentView.frame.size.height * 0.2
        labelTopMargin.constant = margin
        nameLabelMargin.constant = margin
        telLabelMargin.constant = margin
        lableLineBottom.constant = margin
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
